﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity;
using System.Data;

namespace DataAccess.IService
{
    public interface IOrderService
    {
        
         bool insertUtilityOrder(BankPay bankPay, string stuId);
         bool insertPortOrder(BankPay bankPay, string stuId);
         bool insertStuCardOrder(BankPay bankPay, string stuId);
         bool insertProjectOrder(BankPay bankPay, List<ProjectOrder> orders);
         bool insertProjectDetailOrder(List<OrderDetail> details, String orderId);

        /// <summary>
        /// 一次插入一条缴费订单
        /// </summary>
        /// <param name="bankPay"></param>
        /// <param name="orders"></param>
        /// <returns></returns>
         bool addProjectOrder(BankPay bankPay, ProjectOrder orders);

        /// <summary>
        /// 一次插入一条缴费订单详细
        /// </summary>
        /// <param name="orderDetail"></param>
        /// <param name="orderId"></param>
        /// <returns></returns>
         bool addProjectDetailOrder(OrderDetail orderDetail, String orderId);

         String selectUtilityOrderId();
         String selectPortOrderId();
         String selectStuCardOrderId();
         String selectPaymentOrderId();
         DataSet selectStuCardOrderInfor(String stuId);
         DataSet selectUtilityOrderInfor(String stuId);
         DataSet selectNetworkPortOrderInfor(String stuId);
         DataSet selectPaymentProjectInfor(String stuId);
         DataSet selectProjectDetailInfor(String orderId, int stuProjectId);



         DataSet getTuitionOrderSet();
         DataSet getTuitionSet();
         DataSet getTuitionDetailSet(String orderId);



         DataSet getTuitionOrderSetByStudentId(string studentId);
         DataSet getStuCardOrderSetByStudentId(string studentId);
         DataSet getNetworkOrderSetByStudentId(string studentId);
         DataSet getUtilityOrderSetByStudentId(string studentId);
         DataSet getTuitionOrderDetailByOrderId(string orderId);
    }

}
